package com.linked.basemanage.permissioncontrol.bean.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author :dbq
 * @date : 2023/2/23 15:49
 * @description : desc
 */
@Data
@TableName("basemanage_user_role")
public class UserRolePO {


    @TableId(value = "user_role_id",type = IdType.ASSIGN_UUID)
    private String userRoleId;
    @TableField("user_id")
    private String userId;
    @TableField("role_id")
    private String roleId;
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @TableField("data_status")
    private Integer dataStatus;
    @TableField("create_user_id")
    private String createUserId;
    @TableField("update_user_id")
    private String updateUserId;
}
